package com.link2room.rodimus.feign.mirage;

import com.link2room.common.dto.result.base.BaseResultDto;
import com.link2room.mirage.dto.param.SessionRefreshParamDto;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author sqj88
 * @date 2017/11/10 22:07
 */
@FeignClient("${spring.gateway.name}/${feign.mirage}")
public interface MemberLoginFeignService {
    /**
     * 验证
     * @param paramDto
     * @return
     * @throws Exception
     */
    @RequestMapping(method = RequestMethod.PUT,value = "/in/Sessions",consumes = MediaType.APPLICATION_JSON_VALUE)
    BaseResultDto refreshSession(@RequestBody SessionRefreshParamDto paramDto) throws Exception;
}
